//
//  SetupTableViewCell.m
//  片刻
//
//  Created by lanou3g on 15/6/4.
//  Copyright (c) 2015年 lanou3g. All rights reserved.
//

#import "SetupTableViewCell.h"
#import "MaocHeader.h"
@implementation SetupTableViewCell

-(void)dealloc
{
    _tiletLabel = nil;
    _contentLabel = nil;
    _open= nil;
    [super dealloc];
}
//自动下载的自定义cell
- (void)awakeFromNib {
    // Initialization code
}
-(instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        _tiletLabel = [[UILabel alloc] initWithFrame:CGRectMake(15, 10, 150, 30)];
        _tiletLabel.text = @"自动离线下载";
        _tiletLabel.font=[UIFont systemFontOfSize:20];
        _contentLabel = [[UILabel alloc] initWithFrame:CGRectMake(15, 50, SCREEN_WIDTH - 30, 10)];
        _contentLabel.font = [UIFont systemFontOfSize:10];
        [_contentLabel setTextColor:[UIColor grayColor]];
        _contentLabel.text = @"仅Wi-fi下可以用，自动缓存每日最新today-Ting，清除昨日缓存Ting";
        _open = [[UISwitch alloc] initWithFrame:CGRectMake(SCREEN_WIDTH-80, 5, 70, 60)];
        [self.contentView addSubview:_tiletLabel];
        [self.contentView addSubview:_contentLabel];
        [self.contentView addSubview:_open];
        
        [_tiletLabel release];
        [_contentLabel release];
        [_open release];
    }
    return self;
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
